package com.guslegend.spzx.manager.mapper;

import com.guslegend.spzx.model.dto.system.SysUserDto;
import com.guslegend.spzx.model.entity.system.SysUser;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;

/**
 * @author: guslegend
 * @description: 用户数据访问层
 * @create: 2025-04-29 09:08
 **/
@Mapper
public interface SysUserMapper {

    /**
     * 根据用户名查询用户数据
     * @param userName
     * @return
     */
    public abstract SysUser selectByUserName(String userName) ;

    public abstract List<SysUser> findByPage(SysUserDto sysUserDto);

    public abstract SysUser findByUserName(String name);

    public abstract void saveSysUser(SysUser sysUser);

    public abstract void updateSysUser(SysUser sysUser);

    public abstract void deleteById(Long userId);
}